from flask.blueprints import Blueprint
from toutiaoapi.flaskrestful import BaseApi

# 创建蓝图和api实例
user_blueprint = Blueprint('user', __name__)
user_api = BaseApi(user_blueprint)

# 导入views
from . import views

# 绑定路由
user_api.add_resource(views.LoginResource, '/login'),
user_api.add_resource(views.SmsCodeResource,'/sms/codes/<mobile>/')
